package module.controller
{
	import module.ModuleConstants;
	import module.view.ModuleJunctionMediator;
	import module.view.ModuleSampleMediator;
	
	import org.puremvc.as3.multicore.interfaces.ICommand;
	import org.puremvc.as3.multicore.interfaces.INotification;
	import org.puremvc.as3.multicore.patterns.command.SimpleCommand;
	import org.puremvc.as3.multicore.patterns.facade.Facade;

	public class RemoveModuleCommand extends SimpleCommand implements ICommand
	{
		override public function execute(notification:INotification):void{
			// Remove Mediators
            facade.removeMediator( ModuleJunctionMediator.NAME );
            facade.removeMediator( ModuleSampleMediator.NAME );
               
            // Remove Core
            Facade.removeCore( ModuleConstants.MODULE_FACADE);
		}
		
	}
}